<?php

/**
 * TimeSheet actions.
 *
 * @package    time-tracker
 * @subpackage TimeSheet
 * @author     Carlo Di Fulco
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class TimeSheetActions extends sfActions
{
 
	/**
	 *
	 * @extdirect-enable
	 *
	 */
	public function executeLoad()
	{
		try {
			
			$this->result = TtTaskTable::getTimeSlices(); 
			
		} catch (Exception $e) {
			
			$this->result = array(
				'success' 	=> false, 
				'msg' 		=> $e->getMessage()
			);
			
		}
				
		return sfView::SUCCESS;
		
	}
	
}
